
/* C 库 */
#include "stdio.h"
#include <stdint.h>
/* 接口库 */
#include "SpindleMotor/SpindleMotor.hpp"
#include "CompressorMotor/CompressorMotor.hpp"

#include "Driver/Usart/UniversalSerialPort.hpp"

int main(){
    // CompressorMotor * compressor_motor = CompressorMotor::getInstance();
    // bool compressor_motor_ret = false;
    // compressor_motor_ret = compressor_motor->enableMotor();
    // printf("compressor_motor_ret:%s\r\n",compressor_motor_ret ? "True": "Fasle");

    // compressor_motor_ret = compressor_motor->disableMotor();
    // printf("compressor_motor_ret:%s\r\n",compressor_motor_ret ? "True": "Fasle");

    // compressor_motor_ret = compressor_motor->open();
    // printf("compressor_motor_ret:%s\r\n",compressor_motor_ret ? "True": "Fasle");

    // compressor_motor_ret = compressor_motor->close();
    // printf("compressor_motor_ret:%s\r\n",compressor_motor_ret ? "True": "Fasle");

    // compressor_motor_ret = compressor_motor->setSpeed(2000);
    // printf("compressor_motor_ret:%s\r\n",compressor_motor_ret ? "True": "Fasle");

    // uint16_t speed_set = compressor_motor->getSpeedSet();
    // printf("speed %d\r\n",speed_set);


    SpindleMotor * spindle_motor = SpindleMotor::getInstance();
    bool spindle_motor_ret = false;
    spindle_motor_ret = spindle_motor->open();
    printf("spindle_motor_ret:%s\r\n",spindle_motor_ret ? "True": "Fasle");
    while( 1 ){

    }

    return 0;
}